package org.amphiprion.descentv2assistant.entity.comparator;

import java.util.Comparator;

import org.amphiprion.descentv2assistant.entity.Lieutenant;

public class LieutenantActComparator implements Comparator<Lieutenant> {

	@Override
	public int compare(Lieutenant lhs, Lieutenant rhs) {
		if (lhs.getAct() == rhs.getAct()) {
			return lhs.getName().compareTo(rhs.getName());
		} else {
			return lhs.getAct() - rhs.getAct();
		}
	}

}
